﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OutStatistic.aspx.cs" Inherits="OutStatistic" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>出库物资统计查询</title>
</head>
<body background ="../../images/物资右侧背景.jpg"  style="font-size:9pt">
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" style="height: 149px" width="80%" align="center">
            
            <tr>
                <td style="width: 275px; height: 21px">
                    存放仓库</td>
                <td style="width: 232px; height: 21px">
                    <asp:DropDownList ID="ddlStroe" runat="server" AppendDataBoundItems="True" Width="107px">
                    </asp:DropDownList></td>
                <td style="width: 382px; height: 21px">
                    客户</td>
                <td style="width: 384px; height: 21px">
                    <asp:DropDownList ID="ddlCustomer" runat="server" AppendDataBoundItems="True" Width="106px">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="width: 275px">
                    出库类型</td>
                <td style="width: 232px">
                    <asp:DropDownList ID="ddlOut" runat="server" AppendDataBoundItems="True" Width="107px">
                    </asp:DropDownList></td>
                <td style="width: 382px">
                    领用人</td>
                <td style="width: 384px">
                    <asp:TextBox ID="txtSign" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 275px; height: 27px">
                    领用部门</td>
                <td style="width: 232px; height: 27px">
                    <asp:DropDownList ID="ddlDepartment" runat="server" AppendDataBoundItems="True" Width="106px">
                    </asp:DropDownList></td>
                <td style="width: 382px; height: 27px">
                    经办人</td>
                <td style="width: 384px; height: 27px">
                    <asp:TextBox ID="txtBuyMan" runat="server"></asp:TextBox>
                    <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="查询" /></td>
            </tr>
            <tr>
                <td colspan="4" rowspan="5" style="height: 109px">
        <asp:DataList ID="DataList1" runat="server" Width="446px" GridLines="Horizontal" CellSpacing="1">
            <ItemTemplate>
                <table width="376">
                    <tr>
                        <td style="width: 94px">
                            <asp:Label ID="Label3" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.WzID") %>'></asp:Label></td>
                        <td style="width: 94px">
                            <asp:Label ID="Label4" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.Name") %>'></asp:Label></td>
                        <td style="width: 94px">
                            <asp:Label ID="Label5" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.Mode") %>'></asp:Label></td>
                        <td style="width: 94px">
                            <asp:Label ID="Label6" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.Card") %>'></asp:Label></td>
                        <td style="width: 94px">
                            <asp:Label ID="Label1" runat="server" Text='<%# storage(Convert.ToInt32(DataBinder.Eval(Container,"DataItem.WzID")))%>'></asp:Label></td>
                    </tr>
                </table>
            </ItemTemplate>
            <HeaderTemplate>
                <table width="376">
                    <tr>
                        <td style="width: 94px;">
                            物资编号</td>
                        <td style="width: 94px;">
                            物资名称</td>
                        <td style="width: 94px;">
                            型号</td>
                        <td style="width: 94px;">
                            品牌</td>
                        <td style="width: 94px">
                            库存</td>
                    </tr>
                </table>
            </HeaderTemplate>
            <FooterTemplate>
                <table width="376">
                    <tr>
                        <td style="width: 111px; height: 17px">
                            出库物资数量统计：</td>
                        <td style="width: 59px; height: 17px">
                            <asp:Label ID="Label7" runat="server" Text=<%# totalnum %>></asp:Label></td>
                        <td style="width: 94px; height: 17px">
                            出库金额统计：</td>
                        <td style="width: 61px; height: 17px">
                            <asp:Label ID="Label8" runat="server" Text=<%# totalmon %>></asp:Label></td>
                    </tr>
                </table>
            </FooterTemplate>
        </asp:DataList></td>
            </tr>
            <tr>
            </tr>
            <tr>
            </tr>
            <tr>
            </tr>
            <tr>
            </tr>
        </table>
        &nbsp;&nbsp;
    </div>
    </form>
</body>
</html>
